<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="./img/asset-favicon.ico">
    <title>社交-问答详情</title>

    <!-- 页面 css js -->
    <!-- <script type="text/javascript" src="../../plugins/sui/sui.min.js"></script> -->

    <link rel="stylesheet" type="text/css" href="./plugins/normalize-css/normalize.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/yui/cssgrids-min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui-append.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/font-awesome/css/font-awesome.min.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-base.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-head-foot.css"/>
    <link rel="stylesheet" type="text/css" href="./css/page-sj-qa-detail.css"/>
</head>

<body>

<div class="wrapper" id="nav">

    <!--引用组件-->
    <!--头部导航-->

</div>
<div class="tab-nav ">
    <div class="wrapper">
        <ul class="fl sui-nav nav-tabs navbar-dark">
            <li class="active"><a href="#index" data-toggle="tab">首页</a></li>
            <li><a href="#php" data-toggle="tab">Php</a></li>
            <li><a href="#js" data-toggle="tab">Javascript </a></li>
            <li><a href="#python" data-toggle="tab">Python</a></li>
            <li><a href="#java" data-toggle="tab">Java</a></li>
        </ul>
        <span class="fr more"><a href="./qa-allTag.html" target="_blank">更多</a></span>
        <div class="clearfix"></div>
    </div>

</div>
<!--两列布局-->
<div class="wrapper qa-content" id="app">

    <div class="qa-title">
        <div class="fl title">
            <h2>{{ problem_data.title }}</h2>
            <p>
                <span class="tag" v-for="label in problem_label">{{ label.label_name }}</span>
                <span>{{ problem_data.create_time | date}}提问 · 30分钟前更新</span>
            </p>
        </div>
        <div class="fr share">
            <h4>分享到：</h4>
            <ul class="share-go">
                <li><img src="./img/widget-weibo.png" alt=""></li>
                <li><img src="./img/widget-weixin.png" alt=""></li>
                <li><img src="./img/widget-weibo.png" alt=""></li>
                <li><img src="./img/widget-weixin.png" alt=""></li>
            </ul>

        </div>
        <div class="clearfix"></div>
    </div>
    <div class="fl left-list">
        <div class="problem-detail">
            <div class="title-intro">
                <div class="sidebar">

                    <button type="button" class="like" @click="Confirm"><i class="fa fa-caret-up"
                                                                           aria-hidden="true"></i></button>
                    <span class="count">{{ num }}</span>
                    <button type="button" class="hate" @click="Cancel_Confirm"><i class="fa fa-caret-down"
                                                                                  aria-hidden="true"></i></button>

                </div>
                <div class="title">
                    <div class="detail" v-html="problem_data.content">

                    </div>
                    <div class="clearfix"></div>
                    <div class="operate">
                        <span class="time">{{ create }}提问</span>
                        <span class="comment" @click="hidden_inp">评论</span>
                        <span class="edit" @click="edit">编辑</span>
                        <span class="jubao">举报</span>
                    </div>
                    <div v-show="show_data">
                        <input type="text" class="reg_sub" v-model="text_content">
                        <button style="float:right" @click="submit">提交</button>
                        <button style="float:right" @click="cancel">取消</button>
                    </div>
                    <div class="comment-box">
                        <form class="comment-form">
                            <textarea row="1" placeholder="使用评论询问更多信息或提出修改意见，请不要在评论里回答问题"></textarea>
                            <button type="submit" class="sui-btn submit-comment">提交评论</button>
                        </form>
                        <div class="tips">
                            <p>评论支持部分 Markdown 语法：**bold**_italic_[link](http://example.com)> 引用`code`- 列表。 同时，被你 @
                                的用户也会收到通知</p>
                        </div>
                    </div>

                </div>

            </div>
            <h4 class="answer-num">{{ problem_data.reply }}个回答</h4>
            <div class="answer-intro" v-for="answer_content in answer" v-if="answer_content.problem == problem_data.id">
                <!--<div >-->
                    <div>
                        <div class="sidebar">
                            <!--<button type="button" class="like" data-placement="right" data-toggle="tooltip"-->
                                    <!--title="问题对人有帮助，内容完整，我也想知道答案"><i class="fa fa-caret-up" aria-hidden="true"></i>-->
                            <!--</button>-->
                            <!--<span class="count">0</span>-->
                            <!--<button type="button" class="hate" data-placement="right" data-toggle="tooltip"-->
                                    <!--title="问题没有实际价值，缺少关键内容，没有改进余地"><i class="fa fa-caret-down" aria-hidden="true"></i>-->
                            <!--</button>-->
                        </div>
                        <div class="title">
                            <p>{{ answer_content.answer_content }}</p>
                            <div class="plhf" v-for="f in answer_content.childanswer_set">

                                    <span>XX 回复　{{ f.child_author.nickname }}　：{{ f.child_content }}

                                    </span>


                            </div>
                            <div class="operate">
                                <div class="tool pull-left">
                                    <span class="time">{{ answer_content.answer_time | date}}提问</span>

                                    <!--2为固定值需要穿当前用户ＩＤ-->
                                    <span class="comment"
                                          @click="son_text(answer_content.id)">评论</span>
                                    <span class="edit">编辑</span>
                                    <span class="jubao">举报</span>
                                </div>


                                <div class="myanswer pull-right">
                                    <img src="./img/widget-photo.jpg" alt=""> <a href="#">我的回答</a>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div class="comment-box">
                                <form class="comment-form">
                                    <textarea row="1" placeholder="使用评论询问更多信息或提出修改意见，请不要在评论里回答问题"></textarea>
                                    <button type="submit" class="sui-btn submit-comment">提交评论</button>
                                </form>
                                <div class="tips">
                                    <p>评论支持部分 Markdown 语法：**bold**_italic_[link](http://example.com)> 引用`code`- 列表。
                                        同时，被你 @
                                        的用户也会收到通知</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--<input type="text" class="reg_sub" v-show="show_data">-->
                <!--</div>-->

                <div class="clearfix"></div>
            </div>
            <div class="edit-answer">
                <h4>撰写答案</h4>
                <div class="edit-tip">
                    <h4>你正在撰写答案</h4>
                    <p>如果你是要对问题或其他回答进行点评或询问，请使用“评论”功能。</p>
                </div>
            </div>
        </div>

    </div>
    <div class="fl right-tag">
        <div class="similar-problem">
            <h3 class="title">相似问题</h3>
            <ul class="problem-list">
                <li class="list-item" v-for="n in sim_pros">
                    <p class="list-title">{{ n.sim_name }}</p>
                    <p class="list-info"><a href="">{{ n.comment }} 回答</a> | 未解决</p>

                </li>
            </ul>
        </div>
    </div>
    <div class="clearfix"></div>
</div>
<div class="footer">
    <div class="wrapper">
        <div class="footer-bottom">
            <div class="link">
                <dl>
                    <dt>网站相关</dt>
                    <dd>关于我们</dd>
                    <dd>服务条款</dd>
                    <dd>帮助中心</dd>
                    <dd>编辑器语法</dd>
                </dl>
                <dl>
                    <dt>常用链接</dt>
                    <dd>传智播客</dd>
                    <dd>传智论坛</dd>
                </dl>
                <dl>
                    <dt>联系我们</dt>
                    <dd>联系我们</dd>
                    <dd>加入我们</dd>
                    <dd>建议反馈</dd>
                </dl>
                <dl>
                    <dt>关注我们</dt>
                    <dd>微博</dd>
                    <dd>twitter</dd>
                </dl>

                <div class="xuke">
                    <h3>内容许可</h3>
                    <p>除特别说明外，用户内容均采用知识共享署名-非商业性使用-禁止演绎4.0 国际许可协议 (CC BY-NC-ND 4.0) 进行许可</p>
                    <p>本站由 传智研究院 提供更新服务</p>
                </div>
            </div>


            <p class="Copyright">Copyright © 2017 传智问答社区 当前版本 0.0.1</p>
        </div>
    </div>

</div>
</body>
<script src="./js/axios-0.18.0.min.js"></script>
<script src="./js/vue-2.5.16.js"></script>
<script src="./js/jquery-1.12.4.min.js"></script>
<script src="./js/layer/layer.js"></script>
<script src="./js/base.js"></script>
<script src="./js/qa-detail.js"></script>
<script type="text/javascript">
    $('#nav').load('/base_nav.html')
</script>